package com.rp.data.tcp_ws.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.net.SocketAddress;

/**
 * 类说明:
 *
 * @author ****
 * @date 2021-01-09 13:57  新建
 */
@Data
@Accessors(chain = true)
public class SocketAddressModel {

    @ApiModelProperty(value = "链接IP")
    private SocketAddress socketAddress;

    @ApiModelProperty(value = "是否显示处置后的[1显示(默认) 0不显示]")
    private Integer state = 1;

    @ApiModelProperty(value = "位置Id")
    private String locationId;

    public SocketAddressModel() {
    }

    public SocketAddressModel(SocketAddress socketAddress) {
        this.socketAddress = socketAddress;
    }

    public SocketAddressModel(SocketAddress socketAddress, Integer state, String locationId) {
        this.socketAddress = socketAddress;
        this.state = state;
        this.locationId = locationId;
    }
}
